
<link href="__STATIC__/css/header.css" rel="stylesheet">
<script type="application/javascript" src="__STATIC__/js/article/header.js"></script>
<script type="application/javascript" src="__STATIC__/js/lib/layer/2.4/layer.js"></script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?c669a4b5b6e9fd202efb4f13f1060125";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    //路由地址
    var loginUrl="<{:url("/login")}>";
    var registerUrl="<{:url("/register")}>";
</script>

<div style="background-color: rgb(96, 168, 156);">
    <div class="top_div clearfix">
        <div class="top_div_icon">
            <span><a href="<{:url('/index')}>">Welcome to    Even Blog</a></span>
        </div>
        <div class="top_div_column">
            <ul>
                {foreach name="columnList" item="list"}
                    <li class="top_li"><a href="<{$list['column_url']}>"><{$list['column_name']}></a></li>
                {/foreach}
            </ul>
        </div>
        <div class="search">
            <input type="hidden" value="<{:url('/search')}>" id="search_url">
            <input placeholder="标题、标签" id="search">
            <input type="button" value="搜索" style="outline: none"  class="button">
        </div>
        {if condition="$bloguser neq ''"}
            <div  class="login">
                <a><{$bloguser['nick_name']}></a>
                <a style="color: #ffffff;">|</a>
                <a href="<{:url('/loginout')}>">退出</a>
                <span  onclick="uploadImg()"><img src="<{$bloguser['user_img']}>" ></span>
            </div>
            {else/}
                <div class="login">
                    <a href="javascript:login()">登录</a>
                    <a style="color: #ffffff;">|</a>
                    <a href="javascript:register()">注册</a>
                </div>
        {/if}
    </div>
</div>
{include file='Public:tou'/}